#include <windows.h>
#include <stdio.h>

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	//if(*lpCmdLine == '"')
    //    *(++lpCmdLine + (strlen(lpCmdLine)-1)) = '\0';

	TCHAR szFileName[MAX_PATH];
	DWORD lengh = GetModuleFileName(NULL, szFileName, MAX_PATH) + strlen(lpCmdLine) + 5;

	LPSTR str = (LPSTR) malloc(lengh);

	memset(str, 0, lengh);
	strcat(str, szFileName);
	strcat(str, " ");
	strcat(str, lpCmdLine);

	printf(str);
	getchar();
    return 0;
}
